package com.haredot.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Organization implements Serializable {
    @Serial
    private static final long serialVersionUID = 8593036434431761050L;

    private Long id;

    /**
    * 组织机构名称
    */
    private String name;

    /**
    * 组织机构编码
    */
    private String code;

    /**
    * 状态
    */
    private Boolean state;

    /**
    * 上级ID
    */
    private Long pid;

    /**
     * 录入时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 删除标记
     */
    private Boolean del;
}